package com.ms.p2p.provider.impl;


import com.alibaba.dubbo.config.annotation.Service;
import com.ms.p2p.entity.account.Account;
import com.ms.p2p.provider.MemberAccountRecordProvider;
import com.ms.p2p.service.impl.MemberAccountRecordServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;

import java.math.BigDecimal;
import java.util.List;
import java.util.Map;

@Service
public class MemberAccountRecordProviderImpl implements MemberAccountRecordProvider {
	@Autowired
	MemberAccountRecordServiceImpl memberAccountRecordService;

	public int record(Account account, int toUserId, BigDecimal money, String remark, String addIp, String type, String flow) {
		return memberAccountRecordService.record(toUserId,money,remark,addIp,type,flow);
	}

	public Map<String, Object> staticMoney(String flow, String user_id) {
		return memberAccountRecordService.staticMoney(flow,user_id);
	}

	public List<Map<String, Object>> findPager(String userId, String userName, String account_type, String begin_date, String end_date, int pageBegin, Integer pageSize) {
		return memberAccountRecordService.findPager(userId,userName,account_type,begin_date,end_date,pageBegin,pageSize);
	}

	public int findCount(String userId, String userName, String account_type, String begin_date, String end_date) {
		return memberAccountRecordService.findCount(userId,userName,account_type,begin_date,end_date);
	}
}
